/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package shared;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;

/**
 *
 * @author konp
 */
public class Map// extends Ellipse2D.Double 
{

    public final float radius = 300;
    private BufferedImage img;

    public Map()
    {
        try {
            img = ImageIO.read(this.getClass().getResourceAsStream("resources/map.jpg")); 
        } catch (IOException ex) {
            Logger.getLogger(Map.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public void draw(Graphics2D g2d)
    {
        g2d.drawImage(img, 0, 0, null);
        //g2d.draw(circle);
    }

    public Point.Double center()
    {
        return new Point.Double(radius, radius);
    }

}
